Adwaita: relocate a selector
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 6 May 2016 16:50:37 +0000 (18:50 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 6 May 2016 17:00:12 +0000 (19:00 +0200)
relocate treview acceleditor > label in the treeview section and
add a comment for a testcase.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 83b2cb904188622e23356705dd54335ef4b83fd6..3fd21eef68344ca76077889630c916d444fe62ac 100644 (file)
@@ -420,10 +420,6 @@ entry {
   }
 }
 
-treeview acceleditor > label {
-    background-color: $selected_bg_color;
-}
-
 treeview entry {
   &:focus {
     &:dir(rtl), &:dir(ltr) { // specificity bump hack
@@ -1814,6 +1810,8 @@ treeview.view {
       transition: none;
     }
   }
+
+  acceleditor > label { background-color: $selected_bg_color; } // see tests/testaccel to test
 }
 
 %column_header_button {
index 76d629b786a9d08b6a371d5b8b27da7e3eb228bc..05909fdc27bbffd2a8570ae190ece322b339842d 100644 (file)
@@ -400,9 +400,6 @@ entry:drop(active):not(:only-child) + button,
 entry:drop(active):not(:only-child) + combobox > box > button.combo {
   border-top-color: #4e9a06; }
 
-treeview acceleditor > label {
-  background-color: #215d9c; }
-
 treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
   background-color: #232729;
   transition-property: color, background; }
@@ -2220,6 +2217,8 @@ treeview.view {
     box-shadow: inset 0 0 0 1px #232729;
     text-shadow: none;
     transition: none; }
+  treeview.view acceleditor > label {
+    background-color: #215d9c; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
   padding: 0 6px;
index 9454ae945384ab288773222cbd560117d1a266f1..23e645d4736abebf64369dfe82c1a2778ee6441c 100644 (file)
@@ -400,9 +400,6 @@ entry:drop(active):not(:only-child) + button,
 entry:drop(active):not(:only-child) + combobox > box > button.combo {
   border-top-color: #4e9a06; }
 
-treeview acceleditor > label {
-  background-color: #4a90d9; }
-
 treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
   background-color: #ffffff;
   transition-property: color, background; }
@@ -2233,6 +2230,8 @@ treeview.view {
     box-shadow: inset 0 0 0 1px #ffffff;
     text-shadow: none;
     transition: none; }
+  treeview.view acceleditor > label {
+    background-color: #4a90d9; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
   padding: 0 6px;